﻿// DigitalDesign
// Project: InformationBoard
// Developer: Montak Oleg
// Created: 18.11.2011
// Last change: 18.11.2011
// Description: wrapper-classes for transfer to an entity on the client

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Server
{
    [DataContract]
    public class wClientChanx
    {
        public wClientChanx() { }

        public wClientChanx(ClientChanx client_changes)
        {
            Id = client_changes.Id;
            ClientDeviceId = client_changes.ClientDevice_Id;
            DataVersion = client_changes.DataVersion;
            SchedulesDataVersion = client_changes.SchedulesDataVersion;
            VideoDataVersion = client_changes.VideoDataVersion;
            SettingsDataVersion = client_changes.SettingsDataVersion;
        }

        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public int ClientDeviceId { get; set; }

        [DataMember]
        public int DataVersion { get; set; }

        [DataMember]
        public int SchedulesDataVersion { get; set; }

        [DataMember]
        public int VideoDataVersion { get; set; }

        [DataMember]
        public int SettingsDataVersion { get; set; }
    }
}
